yum -y install numactl-devel;
command=$1
begin=$2
end=$3

if [ "$command" = "off" ];then
for ((i=$begin;i<=$end;i++))
do
  echo 0 > /sys/devices/system/cpu/cpu$i/online #关闭
done

elif [ "$command" = "on" ];then
for ((i=$begin;i<=$end;i++))
do
  echo 1 > /sys/devices/system/cpu/cpu$i/online #关闭
done
fi
